using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

namespace 前置知识
{
    [CustomEditor(typeof(MapGenerate))]
    public class MapGenerate_Editor : Editor
    {
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            if (GUILayout.Button("清除地图"))
            {
                ((MapGenerate)target).CleanMap();
            }

            if (GUILayout.Button("生成"))
            {
                ((MapGenerate)target).GenerateMap();
            }
        }
    }
}